﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using UserNotificationAspMvc.Models;

namespace UserNotificationAspMvc.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {

            NotificationQueue queue = new NotificationQueue(NotificationPosition.inline);
            queue.Notifications.Add(new UserNotification("Welcome! Here is your first notification! This message will selfdistruct in about 4 seconds ;)", NotificationType.Info, 10000));
            queue.Notifications.Add(new UserNotification("Error! No data found.", NotificationType.Error));
            ViewBag.q = queue;
            return View();
        }


        public ActionResult Create()
        {

            ViewBag.oneNotification =  new UserNotificationAttached("Field must not be empty", NotificationType.Info, 0,300,BarAnimationDirection.right,"Title",GripPositon.right  );
            return View();
        }


        public ActionResult GripSample()
        {
            ViewBag.oneNotification = new UserNotificationAttached("Successfully gripped to item", NotificationType.Success, 0, 400, BarAnimationDirection.right, "item2grip2", GripPositon.top);
            return View();
        }



        public ActionResult About()
        {
            return View();
        }
    }
}
